package com.sywl.glzh.common;

import org.apache.tiles.AttributeContext;
import org.apache.tiles.context.TilesRequestContext;
import org.apache.tiles.preparer.ViewPreparer;

import com.sywl.glzh.domain.ProductType;

/**
 * 此类用来加载菜单数据
 * @author itachi
 *
 */
public class AbstractPreparer implements ViewPreparer {

	@Override
	public final void execute(TilesRequestContext tilesContext,
			AttributeContext attributeContext) {
		tilesContext.getRequestScope().put("productTypes", ProductType.findAllProductTypes());
	}
	
}
